package com.rainy.generator.service;

import com.rainy.generator.entity.ColumnEntity;
import com.rainy.generator.entity.TableEntity;
import com.rainy.generator.entity.TableQuery;

import java.util.List;
import java.util.Map;

/**
 * @author liuqin on 2017/12/16
 */
public interface TableService {

    TableEntity queryTable(String db,String tableName);

    List<TableEntity> queryTables(TableQuery tableQuery);

    Long queryCount(TableQuery tableQuery);

    List<Map<String,String>> queryColumns(String db,String tableName);

    List<String> queryDataBases();

    String getConnectDb();
}
